<?php

//数据源来自collection

class ml_biz_pin_collection extends ml_biz_pin_abstract{

    public function output($uid,$data,$ifme,$ext_data){

        $this->uid        = $uid;
        $this->ifme       = $ifme;
        $this->uniqueData = $this->uniqueData($data,$ext_data);
        
        $this->getUidRid();
        $this->get_cnt();
        $this->get_attitude();
        $this->get_comment();
        $this->get_ColCnt();
        $this->get_PicHeight();
        $this->parseData();
        
       
        return $this->aHTML;

    }
    public function uniqueData($aData,$ext_data){
        foreach ($ext_data as &$content) {
            $content['is_quote']=true;//转采形式
            $content['attitude_score'] = $this->aAttitude[$content['rid']];
            $content['quote_info']=array('uid'=>$content['uid'],'content'=>$content['comment'],'nick'=>Tool_string::un_html($this->aNicks[$content['uid']]));
            $content['uid']=ml_tool_resid::resid2uid($content['rid']);//作者uid
            $content['type_xrank']=$aData[$content['rid']]['type_xrank'];
            $content['pic_id']=$aData[$content['rid']]['pic_id'];
            $content['gd_title']=$aData[$content['rid']]['gd_title'];
            $content['gd_price']=$aData[$content['rid']]['gd_price'];
            $content['content']=$aData[$content['rid']]['content'];
            $content['ifme']   = $this->ifme;
            $this->aUid[]=$content['uid'];
        }
        $this->uniqueData=$ext_data;
    }
}

?>